package com.makeblock.demo.testdatabinding.model;

import android.view.View;

/**
 * Created by xuexin on 2016/10/26.
 */

public class DataModel {
    private String text;
    private boolean show;
    private String hideString;

    public DataModel(String text, boolean show, String hideString) {
        super();
        this.text = text;
        this.show = show;
        this.hideString = hideString;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public boolean getShow() {
        return show;
    }

    public void setShow(boolean show) {
        this.show = show;
    }

    public String getHideString() {
        return hideString;
    }

    public void setHideString(String hideString) {
        this.hideString = hideString;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof DataModel) {
            return ((DataModel) obj).getText().equals(text) &&
                    ((DataModel) obj).getHideString().equals(hideString) &&
                    ((DataModel) obj).getShow() == show;
        }
        return super.equals(obj);
    }
}
